package com.qianye.service.impl;

import com.qianye.service.TestBizService;
import com.qianye.entity.Test;
import com.qianye.service.TestCoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

/**
 * @Author: hjz
 * @DataTime: 2024/9/11 0:57
 **/
@Service("testBizService")
public class TestBizServiceImpl implements TestBizService {
    @Autowired
    private TestCoreService testCoreService;


    @Override
    public Test queryById(Long id) {
        return testCoreService.queryById(id);
    }

    @Override
    public Page<Test> queryByPage(Test test, PageRequest pageRequest) {
        return testCoreService.queryByPage(test, pageRequest);
    }

    @Override
    public Test insert(Test test) {
       return testCoreService.insert(test);
    }

    @Override
    public Test update(Test test) {
        return testCoreService.update(test);
    }

    @Override
    public boolean deleteById(Long id) {
        return testCoreService.deleteById(id);
    }
}
